<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('customer/index')}">{:lang('ADMIN_CUSTOMER_INDEX')}</a></li>
			<li><a href="{:url('customer/add')}">{:lang('ADMIN_CUSTOMER_ADD')}</a></li>
		</ul>
        <div>
            <form  class="well form-inline margin-top-20" action="{:url('Customer/index')}" method="post">
                <label>{:lang('BUY_NAME')}: 
                <input type="text" class="form-control" name="customer_name" placeholder="请输入姓名"value="{:input('request.customer_name')}" >
                </label>
                <label>{:lang('CONTACT_PHONE')}:
                <input type="text" class="form-control" name="customer_phone" placeholder="请输入联系电话"value="{:input('request.customer_phone')}" >
                </label> 
                <input type="submit" class="btn btn-primary" value="搜索" />
                <a class="btn btn-danger" href="{:url('Customer/index')}">清空</a>
            </form>
        </div>
        	<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="left" width="40">{:lang('USER_NAME')}</th>
						<th align="left" width="20">{:lang('GENDER')}</th>
						<th align="left" width="20">{:lang('STATUS')}</th>
                        <th align="left" width="40">{:lang('BUY_NAME')}</th>
						<th align="left" width="50">{:lang('CONTACT_PHONE')}</th>
						<th align="left" width="25">{:lang('BUDGET')}</th>
                        <th align="left" width="25">{:lang('INTENTION')}</th>
                        <th align="left" width="30">{:lang('REGISTER_PERSON')}</th>
                        <th align="left" width="25">{:lang('REGISTER_TIME')}</th>
                        <!--<th align="left" width="50">{:lang('ORDER_STATUS')}</th>-->
                        <th width="15">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
				<foreach name="results" item="vo">
					<tr>
						<td >{$vo.deceased_name}</td>
						<td ><php>echo $vo['deceased_sex']==1?'男':'女'</php></td>
						<td ><php>echo $vo['deceased_status']==1?'健在':'已故'</php></td>
						<td >{$vo.customer_name}</td>
						<td >{$vo.customer_phone}</td>
						<td >{$vo.price_budget}</td>
						<td >{$vo.customer_desc}</td>
						<td >{$vo.user_nickname}</td>
						<td><php>echo date('Y-m-d', $vo['add_time'])</php></td>
						<!--<td >

							{$vo.order_status}
						</td>-->
						<td>
							<a href="{:url('Customer/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
							|
							<a class="js-ajax-delete" data-msg="确定删除吗？" href="{:url('Customer/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
							<!--|
							<a href="{:url('Customer/delete',array('id'=>$vo['id']))}">{:lang('SELECT')}</a>-->
						</td>
					</tr>
				</foreach>
				</tbody>
			</table>
		<div class="pagination" style="margin-top: -10px">{$page}</div>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
</body>
</html>